package com.swyc.osschat.Test.designMode.visitor.vo;

import com.swyc.osschat.Test.designMode.visitor.service.Friend;
import com.swyc.osschat.Test.designMode.visitor.service.Room;

/**
 * @description 具体元素角色：房间B
 * @Author: z156940l@outlook.com
 * @className RoomB
 * @Date: 2022/6/27 16:11
 */
public class RoomB implements Room {
    @Override
    public void accept(Friend friend) {
        friend.visit(this);
        System.out.println("访问了房间B");
    }
}
